<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.tjtt.common.utils.DateUtilsAll"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String mainid = request.getParameter("mainid");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html>
  <head>
   	<%@ include file="../jslib/jquerylib.jsp" %> 
	<link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js"  defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/lhgdialog/lhgcore.lhgdialog.min.js?skin=mac"></script>

    <c:if test="${requestScope.message!=null}">
		<script type="text/javascript">
 	 		     alert('<c:out value="${requestScope.message}"></c:out>');
 	 		     window.close();
 		</script>
	</c:if> 
	<style type="text/css">
 		body{
 			background:#ffffff; background-image:url(images/);
 			
 		}
   		html{
		    overflow-x: hidden;
			overflow-y: auto;
		}  	
		.formTableNew textarea{border: 1px solid #999;padding: 5px;width: 760px;-moz-border-radius: 3px;border-radius: 3px;margin-bottom: 5px;color: #666;background: url(../images/input_bg.gif) repeat-x top;}
   </style>	
 
  	<script type="text/javascript">
  		var api = frameElement.api, W = api.opener;
    	var stateValue="";
    	var guzhangid = ${shebeiguzhang.id}
   		$(document).ready(function(){
		 //提交  
		$("#gridTableGuocheng").jqGrid({
					url:'<%=request.getContextPath() %>/shebeiguzhangAction!queryWxguochengList.action?guzhangid='+guzhangid,
					datatype: "json",
					height: 250,
					width: 710, 
					autowidth: true, 
					colNames:['ID','序号','时间日期','工作进度','下一步计划','故障id'],
					colModel:[
							{name:'ID',index:'ID', width:60, key:true,hidden:true,hidedlg:true}, 
							{name:'XUHAO',index:'XUHAO', width:100},								
							{name:'WEIXIUTIME',index:'WEIXIUTIME', width:150},
							{name:'GONGZUOJINDU',index:'GONGZUOJINDU', width:150},
							{name:'NEXTJIHUA',index:'NEXTJIHUA', width:200},
							{name:'GUZHANGID',index:'GUZHANGID', width:110,hidden:true}
					],   
				shrinkToFit:false,
				sortname:'id',
				sortorder:'desc',
				viewrecords:true,
				multiselect: true, // 是否显示复选框
				multiboxonly : true, 
				//gridview: true,  //提升速度
				rownumbers: true,//显示行号
				rownumWidth: 30, //行号的宽度
				rowNum:15,
				rowList:[15,20,50,200,500],
				toolbar: [false,"top"],
				loadComplete: function() {
					
				},
				jsonReader: {
					root:"rows",		// 数据行（默认为：rows）
					page: "page",  	// 当前页
					total: "total",  // 总页数
					records: "records",  // 总记录数
					repeatitems : false		// 设置成false，在后台设置值的时候，可以乱序。且并非每个值都得设
				},
				prmNames:{rows:"rows",page:"page",sort:"sidx",order:"sord",search:"search"},
				pager:"#gridPagerGuocheng",
				caption: "维修过程日志"
			});
		
		var options = {
		  	    url:'<%=request.getContextPath() %>/shebeiguzhangAction!wxjilu.action?flowtaskid=${flowtaskid}',
		  	     beforeSubmit: function() {
		   				return checking();
		    			},
		  	    dataType:'json',
		  	    success: function(data) {
		  	      if(data.result=='success'){
					alert("提交成功");
				//	window.close();
					api.close();
					W.reload();
		  	      }
		  	    }};
		$('#saveBtn').click(function(){
			    	$('#pageFrom').ajaxSubmit(options);
	 	            return false;
    	 });
    	$('#closeBtn').click(function(){
    		api.close();
			//window.close();
		});	
		
	}); 
	
	
		function checking(){
			var weixiufuzeren = $("#weixiufuzeren").val();
			var riqishijian = $("#riqishijian").val();
			var xingzhimingxi = $("#xingzhimingxi").val();
			var dengjimingxi = $("#dengjimingxi").val();
			if(weixiufuzeren ==null || weixiufuzeren == "" ){
					alert("维修负责人不能为空！");
					$("#weixiufuzeren").focus();
		    		return false;
				}
				if(riqishijian ==null || riqishijian == "" ){
					alert("确认时间不能为空");
					$("#riqishijian").focus();
		    		return false;
				}
				if(xingzhimingxi ==null || xingzhimingxi == "" ){
					alert("故障性质不能为空！");
					$("#xingzhimingxi").focus();
		    		return false;
				}
				if(dengjimingxi ==null || dengjimingxi == "" ){
					alert("故障等级不能为空！");
					$("#dengjimingxi").focus();
		    		return false;
				}
		}
	
		//添加
		function addGuochengGrid(){
			var datas = window.showModalDialog("<%=request.getContextPath() %>/shebeiguzhangAction!gotoAdd.action?guzhangid="+guzhangid+"&temp="+Math.round(Math.random()*10000),'',"dialogWidth=500px;dialogHeight=400px");
		 	refreshGuocheng();
		 }
		 
		 
		 //修改
		 function updateGuochengGrid(){
		 	var ids= $("#gridTableGuocheng").jqGrid("getGridParam", "selarrrow") + "";
			if (!ids) {
			    alert("请先选择记录!");  
			    return false;  
			}
			if(ids.indexOf(",")!=-1){
				  alert("只能选择一条记录!");  
			        return false; 
			}
			var row = jQuery("#gridTableGuocheng").jqGrid('getRowData',ids);//获取选中行.
			var id = row.ID;
			$.dialog({
		        title: '维修过程信息修改',
		        content: 'url:'+ '<%=request.getContextPath() %>/shebeiguzhangAction!gotoUpdate.action?guochengid='+id+'&temp='+Math.round(Math.random()*10000),
		        okVal: false,//确定按钮文字
		        cancelVal: false,//取消按钮文字
		        min: true, //是否显示最小化按钮
		        max: false,//是否显示最大化按钮
		        fixed: false,//开启静止定位
		        lock: true,//开启锁屏
		        focus: true,//弹出窗口后是否自动获取焦点（4.2.0新增）
		        time: null,//设置对话框显示时间
		        resize: true,//是否允许用户调节尺寸
		        drag: true,//是否允许用户拖动位置
		        cache: false,//是否缓存iframe方式加载的窗口内容页
		        width: '800px',
		        height: '550px',
			});
		 	refreshGuocheng();
		 }
		 
		 //删除 
	function deleteGuochengGrid(){
		var ids = $("#gridTableGuocheng").jqGrid("getGridParam", "selarrrow") + "";
	    if (!ids) {
	    alert("请先选择记录!");  
	       return false;  
		} 
		if(!confirm("是否确认删除 ？")){
		   return false;
		}
		 var params = {  
			        "ids": ids
			    };  
		var actionUrl = "<%=request.getContextPath() %>/shebeiguzhangAction!deleteguocheng.action?ids="+ids;  
		$.ajax({  
			  url : actionUrl,  
		      type : "post", 
		      data : params,  
		      dataType : "json",  
		      cache : false,  
		      error : function(textStatus, errorThrown) {  
		          alert("系统ajax交互错误: " + textStatus.value);  
		      },  
		      success : function(data, textStatus) {
		      	if(data.result=='success'){
		      		alert("删除成功！");       
		      		refreshGuocheng();    
		      	}else{
		      		alert("删除失败！");
		      	}
		    }  
		});
	}
		 
		//查询
		function refreshGuocheng(){
            var params = {  
                        }
            var postData = $("#gridTableGuocheng").jqGrid("getGridParam", "postData");
            $.extend(postData, params);
			jQuery("#gridTableGuocheng").jqGrid('setGridParam',
			{
				url:'<%=request.getContextPath() %>/shebeiguzhangAction!queryWxguochengList.action?guzhangid='+guzhangid,
			}).trigger("reloadGrid", [{page:1}]);
        } 

		function selectdengji(){
			var datas = window.showModalDialog("<%=request.getContextPath() %>/view/shebeiguzhang_choosedj.jsp?temp="+Math.round(Math.random()*10000),'',"dialogWidth=900px;dialogHeight=550px");
			if(typeof(datas) == 'undefined'){
			}else{
				var json1 = eval('(' + datas + ')');
				 document.getElementById("gzdengjiid").value = json1.ID;
				 document.getElementById("dengjimingxi").value = json1.DENGJIMINGXI;
			}
		}
	
		
		function selectxingzhi(){
			var datas = window.showModalDialog("<%=request.getContextPath() %>/view/shebeiguzhang_choosexz.jsp?temp="+Math.round(Math.random()*10000),'',"dialogWidth=900px;dialogHeight=550px");
			if(typeof(datas) == 'undefined'){
			}else{
				var json1 = eval('(' + datas + ')');
				 document.getElementById("gzxingzhiid").value = json1.ID;
				 document.getElementById("xingzhimingxi").value = json1.XINGZHIMINGXI;
			}
		}
		
		
		function selectbeijian(){
			var datas = window.showModalDialog("<%=request.getContextPath() %>/view/shebeiguzhang_choosebj.jsp?temp="+Math.round(Math.random()*10000),'',"dialogWidth=900px;dialogHeight=550px");
			if(typeof(datas) == 'undefined'){
			}else{
				var json1 = eval('(' + datas + ')');
				 document.getElementById("beijianid").value = json1.ID;
				 document.getElementById("beijianname").value = json1.EP_NAME;
				 document.getElementById("gugexinghao").value = json1.EP_GUIGE;
				 document.getElementById("danjia1").value = json1.EP_AVERAGEPRICE;
				 document.getElementById("danjia").value = json1.EP_AVERAGEPRICE;
			}
		}
		
		function selectwbeijian(){
			var datas = window.showModalDialog("<%=request.getContextPath() %>/view/shebeiguzhang_choosebj.jsp?temp="+Math.round(Math.random()*10000),'',"dialogWidth=900px;dialogHeight=550px");
			if(typeof(datas) == 'undefined'){
			}else{
				var json1 = eval('(' + datas + ')');
				 document.getElementById("wbeijianid").value = json1.ID;
				 document.getElementById("wbeijianname").value = json1.EP_NAME;
				 document.getElementById("wgugexinghao").value = json1.EP_GUIGE;
				 document.getElementById("wshuliang").value = json1.EP_ACTUALSTOCK;
				 document.getElementById("wdanjia").value = json1.EP_AVERAGEPRICE;
				 document.getElementById("danjia1").value = json1.EP_AVERAGEPRICE;
			}
		}
  	</script>
   </head>
  <body>
    <form id="pageFrom" action="" enctype="multipart/form-data" method="post">
    	 <input type="hidden" id="flag" name="flag" />
        <input type="hidden" name="flowid" id="flowid" value="${flowid}" />
     	<input type="hidden" name="stateid" id="stateid" value="${stateid}" />
     	<input type="hidden" id="guzhangid" name="guzhangid" value="${shebeiguzhang.id}" />
     	<input type="hidden" id="rwfenpeiren" name="rwfenpeiren" value="" />
     	<input type="hidden" id="wxfuzeren" name="wxfuzeren" value="" />
     	<input type="hidden" id="taskinfoid" name="taskinfoid" value="${taskinfoid}" />
  		<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew" style="padding-top: 20px">
  			 <tr>
			  <td align="right" style="width:80px">流程名称:</td>
     		<td align="left">
     		<input type="text" id="flowname" name="flowname" maxlength="50" value="${flowname }" style="border: 1px solid #999;padding: 5px;width:250px;"/>
     		<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img></td>
     		<td align="right">设备名称:</td>
  			  <td align="left">
  			  	<input type="hidden" id="equipmentId" name="equipmentId" value="${shebeiguzhang.shebeiid}"/>
  			  	 <input  type="text"  id="EQUIPMENT_NAME" maxlength="50"  name="EQUIPMENT_NAME" style="border: 1px solid #999;padding: 5px;width: 250px;height:25px;"  value="${equipmentName}" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">设备编号：</td>
  			  <td align="left">
  			    <input  type="text" id="EQUIPMENT_NO" maxlength="50" name="EQUIPMENT_NO" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equipmentNo }" />
  			  </td>
  			  <td align="right">规格型号：</td>
  			  <td align="left">
  			    <input  type="text" id="EQU_GUGE" maxlength="50" name="EQU_GUGE" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equGuge }" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">购进日期：</td>
  			  <td align="left">
  			    <input  type="text" id="EQU_GJ_DATE" maxlength="50" name="EQU_GJ_DATE" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equGjDate }" />
  			  </td>
  			  <td align="right">厂家名称：</td>
  			  <td align="left">
  			    <input  type="text" id="EQUIPMENT_SCCJ" maxlength="50" name="EQUIPMENT_SCCJ" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equipmentSccj }" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">关键研发设备：</td>
  			  <td align="left">
  			    <input  type="text" id="EQUIPMENT_GJYFSB" maxlength="50" name="EQUIPMENT_GJYFSB" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equipmentGjyfsb }" />
  			  </td>
  			  <td align="right">进口设备：</td>
  			  <td align="left">
  			    <input  type="text" id="EQUIPMENT_JKSB" maxlength="50" name="EQUIPMENT_JKSB" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equipmentJksb }" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">机损险：</td>
  			  <td align="left">
  			    <input  type="text" id="EQUIPMENT_JSX" maxlength="50" name="EQUIPMENT_JSX" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${equipmentJsx }" />
  			  </td>
  			  <td align="right">报修部门：</td>
  			  <td align="left">
  			    <input  type="text" id="baoxiubumen" maxlength="50" name="baoxiubumen" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.baoxiubumen }"/>
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">报修人：</td>
  			  <td align="left">
  			    <input  type="text" id="baoxiuren" maxlength="50" name="baoxiuren" style="border: 1px solid #999;padding: 5px;width: 250px;" value="${shebeiguzhang.baoxiuren }" />
  			  </td>
  			  <td align="right">联系方式：</td>
  			  <td align="left">
  			    <input  type="text" id="lianxifangshi" maxlength="50" name="lianxifangshi" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.lianxifangshi }" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">故障时间：</td>
  			  <td align="left">
  			    <input  type="text" id="guzhangtime" maxlength="50" name="guzhangtime"  style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.guzhangtime }" />
  			  </td>
  			  <td align="right">是否保质期：</td>
  			  <td align="left">
  			    <input  type="text" id="shifoubaozhi" maxlength="50" name="shifoubaozhi" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.shifoubaozhi}" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">设备状态更改：</td>
  			  <td align="left">
  			    <input  type="text" id="shebeistate" maxlength="50" name="shebeistate" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.shebeistate }" />
  			  </td>
  			  <td align="right">故障描述：</td>
  			  <td align="left">
  			    <input  type="text" id="guzhangmiaoshu" maxlength="50" name="guzhangmiaoshu" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${shebeiguzhang.guzhangmiaoshu }" />
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right" style="width:150px">附件：</td>
  			  <td align="left" colspan="3">
  			  	<jsp:include page="../fileupload/attachment.jsp?id=${shebeiguzhang.id }&column=fujian&show=n" ></jsp:include>
  			  </td>
  			</tr>
  			<tr>
  				<td colspan='4' align='center'>
			      <div id='tt1' class='easyui-tabs' style='width:850px;height：600px'>
			      <input id="weixiuid" name = "weixiuid" type="text" style="display: none" value="${requestScope.id}"/>
			        <div title='过程日志' style='padding:10px'>
			          <input id='saveBtn1' type='button'  value='添 加' onclick="addGuochengGrid()" />
			          <input id='updateBtn1' type='button'  value='修改' onclick="updateGuochengGrid()" />
			          <input id='deleteBtn1' type='button'  value='删除' onclick="deleteGuochengGrid()" />
	                  <table id="gridTableGuocheng"></table>
	                 <div id="gridPagerGuocheng"></div></div>
	                 <div title='附件' style='padding:10px;height: 250px;'>
	                 
	                  <table style="height: 250">
	                  	<tr>
                  		  <td align="right" style="width:150px">附件-过程文件：</td>
			  			  <td align="left" colspan="3">
			  			  	<jsp:include page="../fileupload/attachment.jsp?id=${requestScope.id}&column=guochengfujian&show=n" ></jsp:include>
			  			  </td>
	                  	</tr>
	                  	<tr>
	                  		<td align="right" style="width:150px">附件-图片文件：</td>
				  			<td align="left" colspan="3">
				  			  <jsp:include page="../fileupload/attachment.jsp?id=${requestScope.id }&column=tupianfujian&show=n" ></jsp:include>
				  			</td>
	                  	</tr>
	                  </table>
					 </div>
					 <div title='原因分析' style='padding:10px;width: 250px'>
					   <table >
					   		<tr>
					   			<td align="right" style="width:150px">原因分析：</td>
			  			  		<td align="left" colspan="3">
							    	<div class="div">
										<textarea rows="5" cols="100" id="yuanyinfenxi" name="yuanyinfenxi" onkeydown="countlen1(this);" style="width: 700px;"></textarea>
									</div>	
							    </td>
					   		</tr>
					   </table>
					 </div>
					 <div title='维修方法' style='padding:10px;width: 250px'>
					 	<table >
					 		<tr>
					   			<td align="right" style="width:150px">维修方法：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="checkbox" name="weixiufangfa"  value="自行维修" />自行维修
					  			    <input  type="checkbox" name="weixiufangfa"  value="委外维修" />委外维修
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">委外厂商：</td>
			  			  		<td align="left" align="left" style="width:220px">
							    	<input  type="text" id="weiwaichangshang" maxlength="50" name="weiwaichangshang" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">委外维修费用（元）：</td>
			  			  		<td>
							    	<input  type="text" id="weiwaifeiyong" maxlength="50" name="weiwaifeiyong" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">委外备件费用（元）：</td>
			  			  		<td align="left" style="width:220px">
							    	<input  type="text" id="weiwaibeijianfy" maxlength="50" name="weiwaibeijianfy" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">维修方法：</td>
			  			  		<td align="left">
							    	<input  type="text" id="weixiufangfax" maxlength="50" name="weixiufangfax" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">故障等级：</td>
			  			  		<td align="left" style="width:220px">
							    	<input  type="radio" name="guzhangdengji"  value="A" />A
					  			    <input  type="radio" name="guzhangdengji"  value="B" />B
					  			    <input  type="radio" name="guzhangdengji"  value="C" />C
					  			    <input  type="radio" name="guzhangdengji"  value="D" />D
							    </td>
							    <td align="right" style="width:150px">故障等级明细：</td>
			  			  		<td align="left">
			  			  			<input type="hidden" id="gzdengjiid" name="gzdengjiid" value=""/>
							    	<input  type="text" id="dengjimingxi" maxlength="50" name="dengjimingxi" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    	<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" style="cursor:hand; vertical-align: middle;" onclick="selectdengji()" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">故障性质：</td>
			  			  		<td align="left" style="width:220px">
							    	<input  type="radio" name="guzhangxingzhi"  value="A" />A
					  			    <input  type="radio" name="guzhangxingzhi"  value="B" />B
					  			    <input  type="radio" name="guzhangxingzhi"  value="C" />C
					  			    <input  type="radio" name="guzhangxingzhi"  value="D" />D
					  			    <input  type="radio" name="guzhangxingzhi"  value="E" />E
					  			    <input  type="radio" name="guzhangxingzhi"  value="F" />F
							    </td>
							    <td align="right" style="width:150px">故障性质明细：</td>
			  			  		<td align="left">
			  			  			<input type="hidden" id="gzxingzhiid" name="gzxingzhiid" value=""/>
							    	<input  type="text" id="xingzhimingxi" maxlength="50" name="xingzhimingxi" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    	<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" style="cursor:hand; vertical-align: middle;" onclick="selectxingzhi()" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   </table>
					 </div>
	                 <div title='备件更换明细' style='padding:10px;width: 250px'>
	                 	<table >
					   		<tr>
					   			<td align="right" style="width:150px">备件更换明细：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="checkbox" name="bjghmingxi"  value="委外备件" />委外备件
					  			    <input  type="checkbox" name="bjghmingxi"  value="库存备件" />库存备件
					  			    <input  type="checkbox" name="bjghmingxi"  value="其他来源" />其他来源
					  			    <input  type="checkbox" name="bjghmingxi"  value="储存维修备件" />储存维修备件
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">备件费用：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="text" id="danjia1" maxlength="50" name="danjia1" style="border: 1px solid #999;padding: 5px;width: 250px;" value="" />
							    </td>
					   		</tr>
					   </table>
					 </div>
					 <div title='库存备件更换明细' style='padding:10px;width: 250px'>
					    <table>
					    	<tr>
					   			<td align="right" style="width:150px">序号：</td>
			  			  		<td align="left">
							    	<input  type="text" id="beijianid" maxlength="50" name="beijianid" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">备件名称：</td>
			  			  		<td align="left">
							    	<input  type="text" id="beijianname" maxlength="50" name="beijianname" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    	<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" style="cursor:hand; vertical-align: middle;" onclick="selectbeijian()" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">规格型号：</td>
			  			  		<td align="left">
							    	<input  type="text" id="gugexinghao" maxlength="50" name="gugexinghao" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">数量：</td>
			  			  		<td align="left">
							    	<input  type="text" id="shuliang" maxlength="50" name="shuliang" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">单价：</td>
			  			  		<td align="left">
							    	<input  type="text" id="danjia" maxlength="50" name="danjia" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">故障是否可修复：</td>
			  			  		<td align="left">
							    	<input  type="text" id="shifoukexiufu" maxlength="50" name="shifoukexiufu" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
					   		</tr>
					    </table>
				 	</div>
				 	<div title='委外维修及其它情况备件更换明细' style='padding:10px;width: 250px'>
			           <table>
					    	<tr>
					   			<td align="right" style="width:150px">序号：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wbeijianid" maxlength="50" name="wbeijianid" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">备件名称：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wbeijianname" maxlength="50" name="wbeijianname" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    	<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" style="cursor:hand; vertical-align: middle;" onclick="selectwbeijian()" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">规格型号：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wgugexinghao" maxlength="50" name="wgugexinghao" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">数量：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wshuliang" maxlength="50" name="wshuliang" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">单价：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wdanjia" maxlength="50" name="wdanjia" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
							    <td align="right" style="width:150px">故障是否可修复：</td>
			  			  		<td align="left">
							    	<input  type="text" id="wshifoukexiufu" maxlength="50" name="wshifoukexiufu" style="border: 1px solid #999;padding: 5px;width: 220px;" value="" />
							    </td>
					   		</tr>
					    </table>
	                </div>
	                 <div title='预防措施' style='padding:10px;width: 250px'>
	                 	<table >
	                 		<tr>
					   			<td align="right" style="width:150px">预防措施：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="checkbox" name="yufangcuoshi"  value="规范使用操作" />规范使用操作
					  			    <input  type="checkbox" name="yufangcuoshi"  value="完善点检项目" />完善点检项目
					  			    <input  type="checkbox" name="yufangcuoshi"  value="纳入维保计划" />纳入维保计划
					  			    <input  type="checkbox" name="yufangcuoshi"  value="储存维修备件" />储存维修备件
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">内容：</td>
			  			  		<td align="left" colspan="3">
							    	<div class="div">
										<textarea rows="5" cols="100" id="neirong" name="neirong"  style="width: 700px;"></textarea>
									</div>	
							    </td>
					   		</tr>
					   </table>
					 </div>
					 <div title='维修建议' style='padding:10px;width: 250px'>
					 	 <table >
					   		<tr>
					   			<td align="right" style="width:150px">维修负责人：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="text" id="weixiufuzeren" maxlength="50" name="weixiufuzeren" style="border: 1px solid #999;padding: 5px;width: 250px;" value="<%=session.getAttribute("username") %>" />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">日期时间：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="text" id="riqishijian" maxlength="50" name="riqishijian" style="border: 1px solid #999;padding: 5px;width: 250px;"  onChange="changeDate()" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" style="border: 1px solid #999;padding: 5px;width: 250px;"  value=""  />
							    	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
							    </td>
					   		</tr>
					   		<tr>
					   			<td align="right" style="width:150px">维修建议：</td>
			  			  		<td align="left" colspan="3">
							    	<input  type="checkbox" name="weixiujianyi"  value="无" />无
					  			    <input  type="checkbox" name="weixiujianyi"  value="设备无法维修，建议报废" />设备无法维修，建议报废
					  			    <input  type="checkbox" name="weixiujianyi"  value="设备无法维修，建议降级使用" />设备无法维修，建议降级使用
					  			    <input  type="checkbox" name="weixiujianyi"  value="其他" />其他
							    </td>
					   		</tr>
					   </table>
				 	</div>
				</td>
  			</tr>
  			<tr>  
			<td align="center" colspan="4">
		    	<input id="saveBtn" type="button" value="提 交"  class="form_bt_orange" />
		    	<input type="button" id="closeBtn" value="取 消" class="form_bt_grey" />
		    </td>
		  </tr>
		</table>
	<!--表单结束-->
	</form>
  </body>
</html>
